<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href="@{/testServletApi(uname='admin',pwd=123)}">testServletApi</a>
<a th:href="@{/testParam(uname='admin',pwd=123)}">testParam</a>
<form th:action="@{/testParam}" method="post">
    <input type="text" name="uname">
    <input type="text" name="pwd">
    <input type="checkbox" name="hobby" value="a">
    <input type="checkbox" name="hobby" value="b">
    <button type="submit" value="提交"></button>
</form>
</body>
</html>